package com.jDesireShop.web.listener;

import javax.servlet.ServletContext;

import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;

import com.jDesireShop.constant.Constant;

public class JDSContextLoaderListener extends ContextLoaderListener{

	@Override
	public WebApplicationContext initWebApplicationContext(ServletContext servletContext) {
		WebApplicationContext wac = super.initWebApplicationContext(servletContext);
		Constant.getInstance().setApplicationContext(wac);
		return wac;
	}
}
